﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MISAPP.MISInterface;

public partial class View_CIB_CIB002 : ViewMatrix
{
    protected void Page_Load(object sender, EventArgs e)
    {
        limit();
        Title = "利率比較表";
        criteriaList = new string[] { "Criteria", "ExclusiveOfAccount", "Unit"
            , "RMGroup","RM_GROUP" };
        serviceName = "MISAPP.Classify.Service.Service_CIB002";
        if (!IsPostBack)
        {
            FillCriteria("GetCriteriaData", "SetData");
        }
        lbl_result.Text = "";
    }

    protected void btn_ExecuteClick(object sender, EventArgs e)
    {
        Execute();
        Button btn = sender as Button;
        Session["RMGroup"] = "0";
        if (btn.Text.Equals("RM Group") )
        {
            Session["RMGroup"] = "1";
            if (CLB_RM_GROUP.GetSelectValue().Length.Equals(0))
            {
                lbl_result.Text = "請選群組";
                return;
            }
        }       
        Server.Transfer("CIB002_1.aspx");
    }

    protected void Execute()
    {
        List<iSelectList> CriteriaList = GetSelectCLB();
        Session["Criteria"] = CriteriaList;
        Session["ExclusiveOfAccount"] = Utility.GetExclusiveAccont(chk_公庫.GetSelectValue());
        Session["Unit"] = ddlMoneyUnit1.GetSelectUnit();
        
    }

   
}
